package cn.sys.controller;

import org.junit.Test;

import java.io.IOException;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class Test02 {
    public static void main(String[] args) {
        ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(30);
        executor.schedule(new Runnable() {
            @Override
            public void run() {
                System.out.println("执行");
            }
        },5, TimeUnit.SECONDS);
    }


}
